﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using BuildPlanner.Classes;

namespace BuildPlanner
{
    /// <summary>
    /// Interaction logic for SelectScreen.xaml
    /// </summary>
    public partial class SelectScreen : Window
    {
        public DataContextSelect dc;

        public SelectScreen()
        {
            InitializeComponent();
            dc = new DataContextSelect();
            this.DataContext = dc;
        }

        private void StartNewBuildClick(object sender, RoutedEventArgs e)
        {
            dc.NewBuild();
            var win = new MainWindow(dc.Build, dc.MapSelectValue);
            win.Show();
            this.Close();
        }
    }
}
